package ru.xpparty.scanner;

/**
 * POJO which represents result of scan opertion.
 * 
 * @author xp.party
 *
 */
public class ScanResult {

	private final String host;
	private final int port;
	private final PortStatus status;
	
	public ScanResult(String host, int port, PortStatus status) {
		this.host = host;
		this.port = port;
		this.status = status;
		
	}
	
	@Override
	public String toString() {
		return String.format("%s:%d %s", host, port, status.getState());		
	}

}
